package top.buyibuyi.course.service.admin.impl;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.buyibuyi.course.dao.admin.SelectAdmin;
import top.buyibuyi.course.pojo.Admin;
import top.buyibuyi.course.service.admin.SelectAdminService;

import java.util.List;

@Service
public class SelectAdminServiceImpl implements SelectAdminService {

    @Autowired
    private SelectAdmin selectAdmin;


    @Override
    public int selectCount(Admin name) {
        return selectAdmin.selectCount(name);
    }

    @Override
    public List<Admin> selectAdmin(@Param("startPage") int startPage, @Param("limit") int limit, @Param("name") String name) {
        return selectAdmin.selectAdmin(startPage,limit,name);
    }

    @Override
    public Admin selectAdminById(int id) {
        return selectAdmin.selectAdminById(id);
    }

    @Override
    public List<Admin> selectAdminAll() {
        return selectAdmin.selectAdminAll();
    }


}
